package com.yndsoft.jc.ui.shoppingcart.entity;

/**
 * Created by hasee on 2017/12/14.
 */

import com.yndsoft.jc.model.Product;
import com.yndsoft.jc.model.ProductAttribute;

import java.io.Serializable;

/**
 * int                   id                     ID
 * int                   mid                    会员ID
 * int                   pid                    产品ID
 * int                   paid                   产品属性ID
 * int                   num                    数量
 * (以下实体为获取信息时有数据，提交时不需)
 * Product               product                产品
 * ProductAttribute      productattribute       产品属性
 */
public class CartBean implements Serializable {

    private static final long serialVersionUID = -4794766446989996031L;
    private int id;
    private int mid;
    private int pid;
    private int paid;
    private int num;
    private boolean isChoose;//条目选中状态
    private Product product;
    private ProductAttribute productattribute;

    public boolean isChoose() {
        return isChoose;
    }

    public void setChoose(boolean choose) {
        isChoose = choose;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getMid() {
        return mid;
    }

    public void setMid(int mid) {
        this.mid = mid;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public int getPaid() {
        return paid;
    }

    public void setPaid(int paid) {
        this.paid = paid;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public ProductAttribute getProductattribute() {
        return productattribute;
    }

    public void setProductattribute(ProductAttribute productattribute) {
        this.productattribute = productattribute;
    }
}
